home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software 2000
/
Software 2000 Volume 1 (Disc 1 of 2).iso
/
education
/
e021.dms
/
e021.adf
/
disney2.AMOS
/
disney2.amosSourceCode
Wrap
AMOS Source Code
|
1978-01-25
|
3KB
|
117 lines
Locate 0,10 : Centre "luckily you have a magic rubber."
DISNEYLAND:
DSCREEN=5 : DCOUNT1=1
DREPEAT:
Curs Off
If DCOUNT1=1
Load "toy1a.abk",5 : Unpack 5 To 0
Load "toy1b.abk",5 : Unpack 5 To 1 : Screen To Front 0
End If
If DCOUNT1=2
Load "toy2a.abk",5 : Unpack 5 To 0
Load "toy2b.abk",5 : Unpack 5 To 1 : Screen To Front 0
End If
If DCOUNT1=3
Load "toy3a.abk",5 : Unpack 5 To 0 :
Load "toy3b.abk",5 : Unpack 5 To 1 : Screen To Front 0
End If
Load "rubber.abk"
Hide On
Curs Off
X Mouse=288 : Y Mouse=100
Wait 100 : Locate 0,1 : Curs Off : Screen 0 : Centre "Clear up the picture then press a key." : Curs Off
Limit Mouse 120,40 To 448,300
RUBBER:
Do
Q=X Mouse-128 : W=Y Mouse-42
Screen Copy 1,Q,W,Q+16,W+16 To 0,Q,W
Exit If Inkey$<>""
Exit If Mouse Key>0
Sprite 8,X Mouse,Y Mouse,8
Loop
Rem *****************Screen Copy 0 To 2
Locate 0,1 : Curs Off : Centre " Please wait While testing. "
TEST1:
DX=0 : DY=0
Global DX,DY
Do
C=Point(DX,DY)
Global C
Exit If C>15
DX=DX+4 : If DX>320 Then Locate 32,1 : Print DY/4 : DX=0 : DY=DY+4
Exit If DY>256
Loop
If C>15 Then Goto FAILED
Bell : Locate 2,1 : Print " "
Wait 50 : Locate 0,1 : Centre "The picture has been cleaned."
Screen Copy 1 To 0
Flash Off
Sprite Off
Do
Exit If Mouse Key>0
Exit If Inkey$<>""
Loop
Bell
If DCOUNT1>2 Then Goto DFINISH
Inc DSCREEN : Inc DSCREEN : Inc DCOUNT1
Cls
Goto DREPEAT
FAILED:
Bell : Locate 2,1 : Curs Off : Print " "
Flash C,"(ff0,10)(00f,10)(0f0,10)(0ff,10)"
Wait 50 : Locate 0,1 : Curs Off : Centre "The picture is not clean yet."
Clear Key
Goto RUBBER
DFINISH:
Cls
Wait 30
Erase 1
Locate 0,10 : Centre "Well Done ! !"
Wait 50
Locate 0,12 : Centre "You have saved Toy Land."
PAUSE
Clear Key
Screen To Front 0
Load "message1.abk",5 : Load "message2.abk",6 : Unpack 5 To 0 : PAUSE : Unpack 6 To 1 : Screen Hide 1
PAUSE: Clear Key : Screen Show 1 : Load "message3.abk",5 : Load "message4.abk",6 : PAUSE : Clear Key : Unpack 5 To 0
PAUSE : Bell : Clear Key : Wait 40 : Unpack 6 To 1
TTESTT:
TTTT$=Input$(1)
If TTTT$="y" Then Goto NNNN
If TTTT$="Y" Then Goto NNNN
If TTTT$="n" Then End
If TTTT$="N" Then End
Goto TTESTT
NNNN:
Cls : Wait 50
Locate 0,14 : Centre "Teddy gives you a magic key"
Locate 0,16 : Curs Off : Centre "and wishes you luck in the"
Locate 0,18 : Centre "next part of your adventure."
Do
Exit If Mouse Key>0
Exit If Inkey$<>""
Loop
DZOOM:
Screen Close 1 : Erase 5 : Erase 1
Cls : Ink 4 : Paint 100,100 : Show On
Run "2.amos"
Shift Off
Screen Close 4 : Screen To Front 2 : Screen 2
Flash C,"(FF0,10)(00F,10)"
Do
Exit If Mouse Key=0
Loop
Clear Key :
Goto RUBBER
Procedure PAUSE
Do
Exit If Mouse Key=0
Loop
Do
Exit If Inkey$=""
Loop
Do
Exit If Mouse Key>0
Exit If Inkey$<>""
Loop
End Proc